package org.dizena.common.base.enums;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public enum EnumHeaderKey {
    TRACE_ID("trace_id", "链路追踪ID"),
    REQUEST_IP("request_ip", "客户端请求IP"),
    ACCESS_TOKEN("access_token", "访问TOKEN"),
    ;
    private String key;
    private String description;

    public String getKey() {
        return this.key;
    }

    public static List<String> keys() {
        return Arrays.stream(EnumHeaderKey.values())
                .map(EnumHeaderKey::getKey)
                .collect(Collectors.toList());
    }

    EnumHeaderKey(String key, String description) {
        this.key = key;
        this.description = description;
    }

}
